package com.junmeng.ademo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.TextView
import com.junmeng.lib.acrash.ACrash

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        findViewById<TextView>(R.id.tv_log_path).text = ACrash.getCrashStorePath()
    }

    fun onClickJavaCrash(view: View) {
        val dd = 1 / 0
    }

    fun onClickNativeCrash(view: View) {
        ACrash.testNativeCrash()
    }
}